//package com.springboot.stelleroid.controller;
//
//import com.springboot.stelleroid.dto.UserDTO;
//import com.springboot.stelleroid.model.LessonModel;
//import com.springboot.stelleroid.model.UserModel;
//import com.springboot.stelleroid.service.LessonService;
//import com.springboot.stelleroid.service.UserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RestController;
//import reactor.core.publisher.Flux;
//import reactor.core.publisher.Mono;
//
//import java.util.List;
//
//@RestController
//public class UserController {
//
//    @Autowired
//    UserService userService;
//    @Autowired
//    LessonService lessonService;
//
//
//    @GetMapping("/userDto")
//    public List<UserDTO> userDto() {
//        return userService.selectAllUserDTOList();
//    }
//
//    @GetMapping("/AllName/flux")
//    public Flux<String> AllNameList1() {
//        return Flux.fromIterable(userService.selectAllNameList());
//    }
//
//    @GetMapping("/AllName/web")
//    public List<String> AllNameList2() {
//        return userService.selectAllNameList();
//    }
//
//
//    @GetMapping("/find/user/{id}")
//    public Mono<UserModel> test1(@PathVariable String id) {
//        return Mono.just(userService.selectUser(id));
//    }
//
//    @GetMapping("/find/user1/{nickName}")
//    public UserModel findByNickName(@PathVariable String nickName) {
//        return userService.findByNickName(nickName);
//    }
//
//    @GetMapping("/find/all/lesson")
//    public  List<LessonModel> findAllLesson() {
//        return lessonService.findAllList();
//    }
//}
